#include <iostream>

using namespace std;

void swap_ptr( int* &a,  int* &b){
    auto temp = a;
    a = b; 
    b = temp;
}

int main(){
    int i = 1, j = 2;
    auto a = &i;
    auto b = &j;
    swap_ptr(a , b);
    cout << *a <<"\t" << *b <<endl;

    return 0;

}